<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<LINK href="<?=$this->styleurl?>/images/index.css" type=text/css rel=stylesheet />
</head>
<body>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 CALLPADDING="0" style="margin-right:30px;">
      <TBODY>
	   <TR BORDER="0" WIDTH="100%">
        <TD style="PADDING-LEFT: 8px; PADDING-TOP: 8px" vAlign=top align=left bgColor=#ffffff height=30 colspan="5">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="34%" height="20"><img src="<?=$this->styleurl?>/images/url_01.gif" width="7" height="10" />&nbsp;<strong>博文分类管理</strong></td>
            <td width="34%" height="20">&nbsp;</td>
            <td width="34%"><div align="center"><a href="<?=$this->adminurl?>/class/addclass">添加分类</a></div></td>
          </tr>
        </table></TD>
      </TR>
	  <tr>
            <td height="20" bgcolor="#999999" style="PADDING-LEFT: 8px; PADDING-TOP: 8px">id</td>
            <td bgcolor="#999999" style="PADDING-LEFT: 8px; PADDING-TOP: 8px"><span class="STYLE1">名称</span></td>
            <td width="16%" bgcolor="#999999" class="STYLE1"><div align="center">上级分类</div></td>
        	<td width="16%" bgcolor="#999999" class="STYLE1"><div align="center">所属专题</div></td>
            <td bgcolor="#999999"><div align="center" class="STYLE1">操作</div></td>
        </tr>
		<form id="form1" name="form1" method="post" action="px.php">
	<?php 
	foreach ($this->class_list as $row):
	?>
      <TR BORDER="0" WIDTH="100%" bgcolor="#EEEEEE" onmousemove="this.style.color='#000000';this.style.backgroundColor='#D5D5D5'" onmouseout="this.style.backgroundColor='#EEEEEE';this.style.color='#000000'">
        <TD width="10%"  height=20 align=left vAlign=top style="PADDING-LEFT: 8px; PADDING-TOP: 8px; border-bottom:#666666 dotted 1px;"><?=$row["class_id"]?></TD>
        <TD  height=20 align=left vAlign=top style="PADDING-LEFT: 8px; PADDING-TOP: 8px; border-bottom:#666666 dotted 1px;"><?php echo $row["class_name"];if($row["class_if_show"]==1)echo "(<font color=red>显示</font>)";else echo "(<font color=red>不显示</font>)";?></TD>
        <TD  height=20 align=left vAlign=top style="PADDING-LEFT: 8px; PADDING-TOP: 8px; border-bottom:#666666 dotted 1px;"><div align="center"><?=$row["class_fid"]?></div></TD>
        <TD align=left vAlign=top style="PADDING-LEFT: 8px; PADDING-TOP: 8px;border-bottom:#666666 dotted 1px;"><div align="center"><?php if($row["class_top"]==1) {echo '文章';}else{echo '相册';}?></div></TD>
        <TD width="32%" align=left vAlign=top style="PADDING-LEFT: 8px; PADDING-TOP: 8px;border-bottom:#666666 dotted 1px;"><div align="center"><a href="<?=$this->adminurl?>/class/editclass?id=<?=$row["class_id"]?>">修改</a>&nbsp;<a href="<?=$this->adminurl?>/class/submitclass?action=del&id=<?=$row["class_id"]?>">删除</a></div></TD>
      </TR>
	<?php 
	endforeach;
	?>

</form>	
      </TABLE>
</body>
</html>